package com.yzc.apis;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "content-service")
public interface TourOrderClient {
    @PostMapping("/content/tour/updateStock")
    void updateStock(@RequestParam("attractionId") Long attractionId,
                     @RequestParam("ticketCount") int ticketCount,
                     @RequestParam("orderId") Long orderId
    );
}
